package com.demo.core.model;

import com.demo.core.model.support.NestedSetModel;

/**
 * 功能对象模型
 * 
 * @author ryuu.kk
 */
public class Function extends NestedSetModel {

	/**
	 * 功能对象模型： URL资源
	 */
	public static final String URL = "0";
	
	/**
	 * 功能对象模型： 方法
	 */
	public static final String METHOD = "1";
	
	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = -2087303602182483154L;

	/**
	 * 标示站点类型ID
	 */
	private Long siteGroupId;
	
	/**
	 * 功能名称
	 */
	//private String name;
	
	/**
	 * 处理不同国际化内容
	 */
	private String title;
	
	/**
	 * 操作动作CODE
	 */
	private String action;
	
	/**
	 * 功能对应URL操作地址
	 */
	private String url;
	
	/**
	 * 类名
	 */
	private String className;
	
	/**
	 * 方法名
	 */
	private String method;
	
	/**
	 * 参数
	 */
	private String params;
	
	/**
	 * 允许匿名访问
	 */
	private Boolean isAnonymous;
	
	/**
	 * 功能类型
	 */
	private String type;
	
	/**
	 * 功能状态
	 */
	private String status;
	
	/**
	 * 功能描述
	 */
	private String description;
	
	/**
	 * 优先级
	 */
	private int priority;
	
	// ~ 新增字段 ==========================================================
	/**
	 * 安全表达式
	 */
	private String expression;
	
	/**
	 * 分解器类型
	 */
	private String resolver;
	 

	public Long getSiteGroupId() {
		return siteGroupId;
	}
	public void setSiteGroupId(Long siteGroupId) {
		this.siteGroupId = siteGroupId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	public Boolean getIsAnonymous() {
		return isAnonymous == null ? Boolean.FALSE : isAnonymous;
	}
	public void setIsAnonymous(Boolean isAnonymous) {
		this.isAnonymous = isAnonymous;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	public String getExpression() {
		return expression;
	}
	public void setExpression(String expression) {
		this.expression = expression;
	}
	public String getResolver() {
		return resolver;
	}
	public void setResolver(String resolver) {
		this.resolver = resolver;
	}
}
